package com.itheima.exerciseTest.method30_39.method36;

public class Student {

    // 私有带参构造
    private Student(String name){
        System.out.println("私有带参构造" + name);
    }

    // 公共无参构造
    public Student(){
        System.out.println("公共无参构造");
    }

    // 公共带参构造
    public Student(String name, int age){
        System.out.println("公共带参构造" + name + age);
    }
}
